﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.Common;
using System.Data;

namespace HRM.Controller
{
    public class TraCuu_Controller : Standard_Controller
    {
        #region "Contructor"
        private static TraCuu_Controller _instance;
        protected TraCuu_Controller() { }
        protected void Dispose()
        {
            _instance = null;
        }
        private static object _syncLock = new object();
        public static TraCuu_Controller Instance()
        {
            if (_instance == null)
            {
                lock (_syncLock)
                {
                    if (_instance == null)
                        _instance = new TraCuu_Controller();
                }
            }
            return _instance;
        }
        public static TraCuu_Controller Instance(String transName)
        {
            if (!String.IsNullOrEmpty(transName))
            {
                TraCuu_Controller _instanceTrans = new TraCuu_Controller();
                _instanceTrans.Trans_Name = transName;
                return _instanceTrans;
            }
            else
                return Instance();
        }
        #endregion


        public DataSet TraCuu_QTBH(string sSoSoBHXH, string sMaTheBHYT, string sMaDonVi, string sHoVaTen, DateTime sNgaySinh)
        {
            return DataConnect.ExecuteDataset(DataConnect.WorkingConnect, Procedure_Name("", "TraCuu_QTBH", false)
                ,sSoSoBHXH
                , sMaTheBHYT
                , sMaDonVi
                , sHoVaTen
                , sNgaySinh
            );
        }

    }
}
